package com.coder4j.platform.service;

import com.coder4j.platform.entity.StatisticsLogEntity;
import com.coder4j.platform.mapper.StatisticsLogMapper;
import com.coder4j.platform.vo.StatisticsLogVO;
import com.coder4j.starter.web.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.BeanUtils;

import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;

/**
 * 统计日志
 * @author keller
 * @date 2024-11-27 15:02:45
 */
@Service
@Slf4j
public class StatisticsLogService extends BaseServiceImpl<StatisticsLogMapper,StatisticsLogEntity,StatisticsLogVO> {

    @Resource
    private StatisticsLogMapper mapper;

    @Override
    public StatisticsLogVO entity2Vo(StatisticsLogEntity entity) {
        StatisticsLogVO vo = new StatisticsLogVO();
        BeanUtils.copyProperties(entity,vo);
        return vo;
    }

    @Override
    public StatisticsLogEntity vo2Entity(StatisticsLogVO vo) {
        StatisticsLogEntity entity = new StatisticsLogEntity();
        BeanUtils.copyProperties(vo, entity);
        return entity;
    }
}
